<template>
   <!-- 加载图标样式10 -->
   <div class="loading">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
   </div>
</template>

<script setup>

</script>

<style scoped lang='scss'>
.loading>div,
.loading {
   box-sizing: border-box;
   position: relative
}

.loading {
   color: #000;
   display: block;
   font-size: 0;
   height: 8px;
   width: 8px
}

.loading>div {
   animation: ball-fussion-ball1 1s ease 0s infinite;
   border-radius: 100%;
   display: inline-block;
   float: none;
   height: 12px;
   position: absolute;
   transform: translate(-50%, -50%);
   width: 12px
}

.loading>div:first-child {
   background-color: #1678ff;
   left: 50%;
   top: 0;
   z-index: 1
}

.loading>div:nth-child(2) {
   animation-name: ball-fussion-ball2;
   background-color: #ea4e3d;
   left: 100%;
   top: 50%;
   z-index: 2
}

.loading>div:nth-child(3) {
   animation-name: ball-fussion-ball3;
   background-color: #ffaa09;
   left: 50%;
   top: 100%;
   z-index: 1
}

.loading>div:nth-child(4) {
   animation-name: ball-fussion-ball4;
   background-color: #04be02;
   left: 0;
   top: 50%;
   z-index: 2
}

.loading.la-sm {
   height: 4px;
   width: 4px
}

.loading.la-sm>div {
   height: 6px;
   width: 6px
}

.loading.la-2x {
   height: 16px;
   width: 16px
}

.loading.la-2x>div,
.loading.la-3x {
   height: 24px;
   width: 24px
}

.loading.la-3x>div {
   height: 36px;
   width: 36px
}

@keyframes ball-fussion-ball2 {
   0% {
      opacity: .35
   }

   50% {
      left: 200%;
      opacity: 1;
      top: 200%
   }

   to {
      left: 50%;
      opacity: .35;
      top: 100%;
      z-index: 1
   }
}

@keyframes ball-fussion-ball1 {
   0% {
      opacity: .35
   }

   50% {
      left: 200%;
      opacity: 1;
      top: -100%
   }

   to {
      left: 100%;
      opacity: .35;
      top: 50%;
      z-index: 2
   }
}

@keyframes ball-fussion-ball3 {
   0% {
      opacity: .35
   }

   50% {
      left: -100%;
      opacity: 1;
      top: 200%
   }

   to {
      left: 0;
      opacity: .35;
      top: 50%;
      z-index: 2
   }
}

@keyframes ball-fussion-ball4 {
   0% {
      opacity: .35
   }

   50% {
      left: -100%;
      opacity: 1;
      top: -100%
   }

   to {
      left: 50%;
      opacity: .35;
      top: 0;
      z-index: 1
   }
}
</style>
